/**
 * ...
 * @author Krzysztof Rozalski
 */

package hapi.physics;

class Mass {

	public var kilos(default, null):Float;
	public var grams(getGrams, null):Float;
	public var tons(getTons, null):Float;
	
	public function new(kilos) {
		this.kilos = kilos;
	}
	
	public function apply(f:Force):Acceleration {
		return f.applyOn(this);
	}
	
	function getGrams() {
		return kilos * 1000;
	}
	
	function getTons() {
		return kilos * 0.001;
	}
}